package br.com.sisdoctor.components.crypt;

import org.jasypt.util.text.BasicTextEncryptor;


public class Crypt {

	private static String CHAVE_CRIPT = "CONTABIL";

	public static String encrypt(String texto) {
		BasicTextEncryptor basic = new BasicTextEncryptor();
		basic.setPassword(CHAVE_CRIPT);
		
		return basic.encrypt(texto);
	}
	
	public static String decrypt(String texto) {
		BasicTextEncryptor basic = new BasicTextEncryptor();
		basic.setPassword(CHAVE_CRIPT);
		
		return basic.decrypt(texto);
	}
}
